package com.prp.gwt.client.user.php;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.prp.gwt.client.ClientException;
import com.prp.gwt.client.vo.MessageList;
import com.prp.gwt.client.vo.SubjectRecommendList;
import com.prp.gwt.client.vo.UserList;
import com.prp.gwt.client.vo.UserStateList;

@RemoteServiceRelativePath("phpRequest")
public interface PHPService extends RemoteService{

	public UserStateList getLatestState(int id) throws ClientException;
	public void addState(String content) throws ClientException;
	public UserStateList getStateList(int id) throws ClientException;
	public UserList getUserRecommendation() throws ClientException;
	public void addMessage(String content, int toUserId, int inUserId) throws ClientException;
	public MessageList getMessageList(int userId) throws ClientException;
	public void deleteMessage(int id) throws ClientException;
	public MessageList getUncheckedMessageList() throws ClientException;
	public void setMessageChecked(int id) throws ClientException;
	public SubjectRecommendList getArticalRecommendation() throws ClientException;
	public SubjectRecommendList getRecentRecommendation(int userId) throws ClientException;
	
}
